import request from '@/common/request'

export function list(data) {
    var data = Object.keys(data).map(key => encodeURIComponent(key) + '=' + encodeURIComponent(data[key])).join('&');
    return request({
        url: '/apikanke/task/list?'+data,
        method: 'get',
        data:data,
    })
}
//编辑
export function detail(data) {
    return request({
        url: '/apikanke/task/detail',
        data:data,
        method: 'post'
    })
}
//编辑
export function edit(data) {
    return request({
        url: '/apikanke/task/edit',
        data:data,
        method: 'post'
    })
}

//删除
export function del(data) {
    return request({
        url: '/apikanke/task/delete',
        data:data,
        method: 'post'
    })
}


